function columns(vm) {
  const cols = [
    {
      title: '排名',
      dataIndex: 'rowIndex',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '单位名称',
      align: 'center',
      dataIndex: 'departName',
      scopedSlots: {customRender: 'departName'},
      width:300
    },
    {
      title: '数量',
      align: 'center',
      dataIndex: 'projectTotalCount',
      width:100
    },
    {
      title: '占比',
      align: 'center',
      dataIndex: 'accountedForAll',
      width:100
    },
    {
      title: '图例',
      align: 'center',
      dataIndex: 'createTime',
      scopedSlots: {customRender: 'createTime'}
    }
  ]
  return cols
}

export default columns